package com.itheima.reggie;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EmployeeService {
    //根据name登录
    ResultInfo login(String username, String password);

    //查询员工所有
    List<Employee> findByName(String name);

    //新增员工信息
    void save(Employee employee);

    //根据id员工数据查询
    Employee findById(Long id);

    //修改员工参数
    void update(Employee employee);
}
